#! /bin/bash
image_name=fire-doc-api-1.1
docker_name=fire-doc-api-1.1
port_out=8888
port_in=8080
build_path_local=/usr/local/projects/fire-document-backend/build
build_path_docker=/build
data_path_local=/usr/local/workspace/fire-document-backend
data_path_docker=/data

chmod u+x *.sh

docker rm $docker_name
docker run --name $docker_name -it -v $build_path_local:$build_path_docker -v $data_path_local:$data_path_docker -d -p $port_out:$port_in $image_name